option = {
color: ['#3398DB', '#000'],
tooltip: {
trigger: 'axis',
axisPointer: {
type: 'shadow'
}
},
grid: {
left: '3%',
right: '4%',
bottom: '3%',
containLabel: true
},
xAxis: [{
type: 'category',
data: ${DivisionName},
axisTick: {
alignWithLabel: true
}
}],
yAxis: [{
name: '%',
axisTick: {
alignWithLabel: true
}
}],
series: [{
name: '覆盖率',
type: 'bar',
barWidth: '40%',
itemStyle: {
normal: {
color: function(params) {
var A = '';
for (var i = 0; i < ${DivisionName}.length; i++) {
if (${DivisionName}[i] === params.name) {

if (${WarnStatus}[i].indexOf("预警") > -1) {
A = '#FF0000';
} else {
A = '#4472C4';
}
}
}
return A
}
},
},
data: ${MonitorValues}
},

],
label: {
normal: {
show: true,
position: 'top',
formatter: '{c}%'
}
},
};